<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html;charset=UTF-8"%>


<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>电影详情</title>
</head>
<body>
<h3>欢迎${user.userName}</h3>
<h1>电影详情</h1>
<hr>
电影编号：${movie.id} <br>
电影名称：${movie.movieName}<br>
电影评分：${movie.movieScore}<br>

电影评论：
<c:forEach items="${movie.movieRecord}" var="record">
    <c:if test="${not empty record.movieReviews}">
        <c:out value="${record.movieReviews}"/>
    </c:if>
</c:forEach>

<h2>您正在观看</h2>
<form action="${pageContext.request.contextPath}/record/save?moviename=${movie.movieName}" method="post">
    请发表您的评论: <input type="text" name="comment" ><br>
    <input type="submit" value="退出"/><br>
</form>

</body>
</html>
